package com.xu.mall.base.tree.entity;

/**
 * 树形结构的父类
 * 
 * @version Revision History
 * 
 *          <pre>
 * Author     Version       Date        Changes
 * lunan.xu   1.0           2012-10-27  Created
 * </pre>
 * 
 * @since 1.
 */
public abstract class BaseTreeEntity implements ITreeEntity {
	private static final long serialVersionUID = -5127211040568349001L;

	public static final String PATH_SEPARATOR = ",";

	protected Long id;// id
	protected Long parent;// 父亲
	protected String name;// 名称
	protected String code;// 编码
	protected String remark;// 备注
	protected Long sort;// 排序
	protected Boolean allowChild;// 是否允许子节点
	protected String idPath;// id路径
	protected Boolean status;// 状态:是否有效
	protected Boolean isDelete;// 是否删除

	public abstract void setCode(String code);

	public Long getLeft() {
		// TODO Auto-generated method stub
		return null;
	}

	public void setLeft(Long left) {
		// TODO Auto-generated method stub

	}

	public Long getRight() {
		// TODO Auto-generated method stub
		return null;
	}

	public void setRight(Long right) {
		// TODO Auto-generated method stub

	}

	public String getParents() {
		// TODO Auto-generated method stub
		return null;
	}

	public void setParents(String parent) {
		// TODO Auto-generated method stub

	}

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getParent() {
		return parent;
	}

	public void setParent(Long parent) {
		this.parent = parent;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getCode() {
		return code;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Long getSort() {
		return sort;
	}

	public void setSort(Long sort) {
		this.sort = sort;
	}

	public Boolean getAllowChild() {
		return allowChild;
	}

	public void setAllowChild(Boolean allowChild) {
		this.allowChild = allowChild;
	}

	public String getIdPath() {
		return idPath;
	}

	public void setIdPath(String idPath) {
		this.idPath = idPath;
	}

	public Boolean getStatus() {
		return status;
	}

	public void setStatus(Boolean status) {
		this.status = status;
	}

	public Boolean getIsDelete() {
		return isDelete;
	}

	public void setIsDelete(Boolean isDelete) {
		this.isDelete = isDelete;
	}

}
